<script setup>
import { useRoute } from 'vue-router'
import HelloWorld from './components/HelloWorld.vue'
const route = useRoute()
</script>

<template>
  <HelloWorld msg="Hello Vue 3.0 + Vite" />
	<router-view v-slot="{ Component }">
		<keep-alive>
			<component :is="Component" v-if="route.meta.keepAlive" :key="route.name" />
		</keep-alive>
	  <component :is="Component" v-if="!route.meta.keepAlive" :key="$route.name" />
	</router-view>
</template>

<style scoped>

</style>
